package cn.bgs.service.Impl;

import cn.bgs.mapper.EmanagementMapper;
import cn.bgs.service.EmanagmentService;
import cn.bgs.vo.Pagevo;
import cn.bgs.vo.TopUpvo;
import cn.bgs.vo.testVo;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class EmanagmentImpl implements EmanagmentService {
    @Autowired
    EmanagementMapper emanagementMapper;
    @Override
    public PageInfo<testVo> page4(Pagevo pagevo) {
        PageHelper.startPage(pagevo.getPageNum(),pagevo.getPageSize());
        List<testVo> EmanagementList=emanagementMapper.selectEm(pagevo.getUserName());
        PageInfo<testVo> cc=new PageInfo<>(EmanagementList);
        return cc;
    }

    @Override
    public void UpdateEmang(testVo form) {
            emanagementMapper.UpdateEmang(form);
    }

    @Override
    public void delEm(Integer userId) {
        emanagementMapper.delEm(userId);
    }

    @Override
    public void updateOper(testVo form) {
        emanagementMapper.updateOper(form);
    }


}
